projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc3867e
)
Run accessibility tests in en_US.utf8
author
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jan 2014 18:11:42 +0000
(13:11 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 14 Jan 2014 18:15:19 +0000
(13:15 -0500)
Previously, we were just using the C locale, which breaks
some of our fancy utf8 output for checkmarks and so on.
testsuite/a11y/accessibility-dump.c
patch
|
blob
|
history
diff --git
a/testsuite/a11y/accessibility-dump.c
b/testsuite/a11y/accessibility-dump.c
index fb9a6896865f5dad15637c080b45e935df4c12b4..4cfd51837536a43fdc43df7864055d130b402d1c 100644
(file)
--- a/
testsuite/a11y/accessibility-dump.c
+++ b/
testsuite/a11y/accessibility-dump.c
@@
-20,6
+20,7
@@
#include "config.h"
+#include <locale.h>
#include <string.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
@@
-874,6
+875,12
@@
parse_command_line (int *argc, char ***argv)
gtk_test_init (argc, argv);
+ /* gtk_test_init does not call setlocale(), so do it ourselves,
+ * since running in the C locale breaks some our fancy
+ * utf8 output.
+ */
+ setlocale (LC_ALL, "en_US.utf8");
+
return TRUE;
}